package main

import(
	"fmt"
	"math/rand"
)

type keiven float64
type sensor func() keiven

func fakeSensor() keiven{
    return keiven(rand.Intn(150)+100)
}

func traverseRand(count int,fakeSensorr func() keiven){
	for i:=0;i<count;i++{
		fmt.Println(fakeSensorr())
	}
}

func traverseRand2(count int,s sensor){
	for i:=1;i<=count;i++{
		fmt.Println(s())
	}
}

func main(){
      traverseRand(10,fakeSensor)
}